<div class="right">
    <div class="title">
        <i class="icon12-title"></i>
        HÌNH ẢNH</div>
    <div class="row-fluid">
        <?php
        foreach ($model as $key => $value) {
            if ($key % 3 == 0)
                $mg = 'maginLess';
            else
                $mg = '';
            ?>
            <div class="span4 <?php echo $mg ?>">
                <div class="post">
                    <div class="product">
                        <?php echo CHtml::link(CHtml::image(Yii::app()->request->baseUrl . '/uploads/gallery/' . $value->image,'')); ?>
                    </div>
                </div>
            </div>
        <?php } ?>

    </div>

</div>
<?php
$this->widget('CLinkPager', array(
    'pages' => $pages,
))
?>